import {GET_DATA} from "./mutations-types";
import axios from "axios";

const actions = {
    getDatas({commit}){
        axios.get("/api/data.json").then(res=>{
            commit(GET_DATA,res.data)
        })
    }
} 
export default actions;